home *** CD-ROM | disk | FTP | other *** search
/ MacWorld 1998 January / Macworld (1998-01).dmg / Serious Demos / Visual MacStandardBasic Demo / Visual MSB Reference / Visual MSB Reference.rsrc / PICT_77.png < prev    next >
Portable Network Graphic  |  1997-10-23  |  81KB  |  816x1056  |  16-bit (942 colors)
Labels: book | bulletin board | chat room | earth | hakham | monitor | plant | reckoner | sky | web site
OCR: Error Handling The commands and functions described in this section describe what can belone when application created ir Visual MacStandardBasic encounters an error when executing See Appendix A and B for listing of runtime and compiler error messages Command Summary: OnError Function Summary: yar ErrorNum( var ErrorMsg OnError Sub This command is used to call a Sub proceduref an error occurs. Normally when an error occurs an alert message box will be displayed showing the error and message Once the useacknowledges it by clicking on the OK command button the application terminates By using the OnError command to call a Sub proceduriastead the alert message box not displayed. The Sub procedure called responsible for handling the error You can use the ErrorNum and ErrMsg functions determine ...